<?php

namespace Proj\ResmanBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class RoomType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('name', null, array('label' => 'Nume sala'))
            ->add('department', null, array('label' => 'Departament'))
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Proj\ResManBundle\Entity\Resources'
        ));
    }

    public function getName()
    {
        return 'proj_resmanbundle_resourcestype';
    }
}